<template>
    <div>
        <div>{{text | myFilter}}</div>
        <sub-vue></sub-vue>
    </div>
</template>

<script>
    import SubVue from './sub.vue';

    export default {
        data() {
            return {

                text: "这里面的是过滤器"
            }
        },
        filters: {
            myFilter(value) {
                return value.split('').reverse().join('');
            }
        },
        components: {
            SubVue
        }
    }
</script>

<style scoped>

</style>